/*
 * @Author: samfeng
 * @Date: 2021-04-17 20:45:18
 * @LastEditTime: 2021-04-24 12:33:06
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /first_flutter_app/lib/views/homePage/homePage.dart
 */

import 'package:first_flutter_app/controller/tablePageController.dart';
import 'package:first_flutter_app/views/indexPage/indePage.dart';
import 'package:first_flutter_app/views/indexPage/orderDetails.dart';
import 'package:first_flutter_app/views/leftGuide/leftGuide.dart';
import 'package:first_flutter_app/views/publicTopTitle/publicTopTitle.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class tableHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisSize: MainAxisSize.max,
        children: [
          Column(
            children: [PublicTitleWidget()],
          ),
          // listviwe无法滚动的情况,加上Expanded包裹
          Expanded(
            child: Row(
              children: [
                leftGaide(),
                GetBuilder(
                  init: HomeController(),
                  builder: (_) => Visibility(
                    visible: HomeController.hc.showOrderDetails,
                    replacement: Text('data'),
                    maintainState: true,
                    maintainAnimation: true,
                    child: OrderDetails(),
                  ),
                ),
                dianCanIndexPage(),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
